ldc i 0
ldc i 0
ldc c 0
ujp startOfProgram
begin_generalTest:
ssp 8
ldc i 22
str i 0 5
lod i 0 5
out i
ldc c ' '
out c
ldc c 10
out c
ldc i 11
str i 0 6
ldc b t
lod i 0 5
conv i r
ldc r 0.5
add r
ldc i 20
conv i r
grt r
and
fjp begin_ELSE_79
begin_IF_79:
ldc i 1
str i 0 5
ujp end_ELSE_79
end_IF_79:
begin_ELSE_79:
ldc i 2
str i 0 5
end_ELSE_79:
begin_WHILE_110:
lod i 0 5
ldc i 10
les i
fjp end_WHILE_110
lod i 0 5
ldc i 5
equ i
fjp begin_ELSE_125
begin_IF_125:
lod i 0 5
ldc i 2
add i
str i 0 5
ujp begin_WHILE_110
ujp end_ELSE_125
end_IF_125:
begin_ELSE_125:
end_ELSE_125:
lod i 0 5
ldc i 9
equ i
fjp end_IF_151
begin_IF_151:
lod i 0 5
ldc i 10
add i
str i 0 5
ujp end_WHILE_110
end_IF_151:
lod i 0 5
ldc i 1
add i
str i 0 5
ujp begin_WHILE_110
end_WHILE_110:
ldc c 'R'
out c
ldc c 'e'
out c
ldc c 's'
out c
ldc c 'u'
out c
ldc c 'l'
out c
ldc c 't'
out c
ldc c ' '
out c
ldc c 'o'
out c
ldc c 'f'
out c
ldc c ' '
out c
ldc c 'k'
out c
ldc c ' '
out c
ldc c 'a'
out c
ldc c 'f'
out c
ldc c 't'
out c
ldc c 'e'
out c
ldc c 'r'
out c
ldc c ' '
out c
ldc c 's'
out c
ldc c 'o'
out c
ldc c 'm'
out c
ldc c 'e'
out c
ldc c ' '
out c
ldc c 'c'
out c
ldc c 'a'
out c
ldc c 'l'
out c
ldc c 'c'
out c
ldc c 'u'
out c
ldc c 'l'
out c
ldc c 'a'
out c
ldc c 't'
out c
ldc c 'i'
out c
ldc c 'o'
out c
ldc c 'n'
out c
ldc c 's'
out c
ldc c ':'
out c
ldc c ' '
out c
lod i 0 5
out i
ldc c ' '
out c
ldc c 10
out c
ldc r 15.0
str r 0 7
ldc c 'R'
out c
ldc c 'e'
out c
ldc c 's'
out c
ldc c 'u'
out c
ldc c 'l'
out c
ldc c 't'
out c
ldc c ' '
out c
ldc c 'o'
out c
ldc c 'f'
out c
ldc c ' '
out c
ldc c 'a'
out c
ldc c 'd'
out c
ldc c 'v'
out c
ldc c 'a'
out c
ldc c 'n'
out c
ldc c 'c'
out c
ldc c 'e'
out c
ldc c 'd'
out c
ldc c ' '
out c
ldc c 'e'
out c
ldc c 'x'
out c
ldc c 'p'
out c
ldc c 'r'
out c
ldc c 'e'
out c
ldc c 's'
out c
ldc c 's'
out c
ldc c 'i'
out c
ldc c 'o'
out c
ldc c 'n'
out c
ldc c ':'
out c
ldc c ' '
out c
lod r 0 7
out r
ldc c ' '
out c
ldc c 10
out c
retf
end_generalTest:
begin_sum:
ssp 7
lod i 0 5
lod i 0 6
add i
str i 0 0
retf
end_sum:
begin_fibonacci:
ssp 6
lod i 0 5
ldc i 0
equ i
fjp begin_ELSE_284
begin_IF_284:
ldc i 0
str i 0 0
retf
ujp end_ELSE_284
end_IF_284:
begin_ELSE_284:
lod i 0 5
ldc i 1
equ i
fjp begin_ELSE_306
begin_IF_306:
ldc i 1
str i 0 0
retf
ujp end_ELSE_306
end_IF_306:
begin_ELSE_306:
mst 0
lod i 0 5
ldc i 1
sub i
cup 1 begin_fibonacci
mst 0
lod i 0 5
ldc i 2
sub i
cup 1 begin_fibonacci
add i
str i 0 0
retf
end_ELSE_306:
end_ELSE_284:
end_fibonacci:
begin_testFibonacci:
ssp 7
ldc i 0
str i 0 5
ldc c 'H'
out c
ldc c 'o'
out c
ldc c 'w'
out c
ldc c ' '
out c
ldc c 'm'
out c
ldc c 'u'
out c
ldc c 'c'
out c
ldc c 'h'
out c
ldc c ' '
out c
ldc c 'F'
out c
ldc c 'i'
out c
ldc c 'b'
out c
ldc c 'o'
out c
ldc c 'n'
out c
ldc c 'a'
out c
ldc c 'c'
out c
ldc c 'c'
out c
ldc c 'i'
out c
ldc c ' '
out c
ldc c 'n'
out c
ldc c 'u'
out c
ldc c 'm'
out c
ldc c 'b'
out c
ldc c 'e'
out c
ldc c 'r'
out c
ldc c 's'
out c
ldc c ' '
out c
ldc c 's'
out c
ldc c 'h'
out c
ldc c 'o'
out c
ldc c 'u'
out c
ldc c 'l'
out c
ldc c 'd'
out c
ldc c ' '
out c
ldc c 'I'
out c
ldc c ' '
out c
ldc c 'c'
out c
ldc c 'a'
out c
ldc c 'l'
out c
ldc c 'c'
out c
ldc c 'u'
out c
ldc c 'l'
out c
ldc c 'a'
out c
ldc c 't'
out c
ldc c 'e'
out c
ldc c '?'
out c
ldc c ' '
out c
ldc c 10
out c
in i
str i 0 5
ldc c 'F'
out c
ldc c 'i'
out c
ldc c 'r'
out c
ldc c 's'
out c
ldc c 't'
out c
ldc c ' '
out c
lod i 0 5
out i
ldc c ' '
out c
ldc c 'F'
out c
ldc c 'i'
out c
ldc c 'b'
out c
ldc c 'o'
out c
ldc c 'n'
out c
ldc c 'a'
out c
ldc c 'c'
out c
ldc c 'c'
out c
ldc c 'i'
out c
ldc c ' '
out c
ldc c 'n'
out c
ldc c 'u'
out c
ldc c 'm'
out c
ldc c 'b'
out c
ldc c 'e'
out c
ldc c 'r'
out c
ldc c 's'
out c
ldc c ':'
out c
ldc c ' '
out c
ldc c 10
out c
ldc i 0
str i 0 6
begin_WHILE_382:
lod i 0 6
lod i 0 5
les i
fjp end_WHILE_382
mst 0
lod i 0 6
cup 1 begin_fibonacci
out i
ldc c ' '
out c
ldc c 10
out c
lod i 0 6
ldc i 1
add i
str i 0 6
ujp begin_WHILE_382
end_WHILE_382:
retf
end_testFibonacci:
begin_floatToInt:
ssp 7
lod r 0 5
lod r 0 6
add r
conv r i
str i 0 0
retf
end_floatToInt:
begin_floatSum:
ssp 7
lod r 0 5
lod r 0 6
add r
str r 0 0
retf
end_floatSum:
begin_faculty:
ssp 10
ldc i 10
conv i a
str a 0 6
lod i 0 5
str i 0 7
ldc i 0
sro i 0
begin_arrayInit_455:
ldo i 0
lod i 0 7
les i
fjp end_arrayInit_455
ldc i 0
ldo i 0
inc i 1
sro i 0
ujp begin_arrayInit_455
end_arrayInit_455:
ldc i 0
str i 0 8
begin_WHILE_480:
lod i 0 8
lod i 0 5
les i
fjp end_WHILE_480
lod a 0 6
conv a i
lda 0 0
conv a i
add i
lod i 0 8
add i
conv i a
lod i 0 8
ldc i 1
add i
sto i
lod i 0 8
ldc i 1
add i
str i 0 8
ujp begin_WHILE_480
end_WHILE_480:
ldc i 1
str i 0 9
ldc i 0
str i 0 8
begin_WHILE_539:
lod i 0 8
lod i 0 5
les i
fjp end_WHILE_539
lod i 0 9
lod a 0 6
conv a i
lda 0 0
conv a i
add i
lod i 0 8
add i
conv i a
movs 1
mul i
str i 0 9
lod i 0 8
ldc i 1
add i
str i 0 8
ujp begin_WHILE_539
end_WHILE_539:
lod i 0 9
str i 0 0
retf
end_faculty:
begin_arraySum:
ssp 9
ldc i 9
conv i a
str a 0 7
ldc i 2
str i 0 8
lod i 0 5
lod i 0 6
lod a 0 7
conv a i
lda 0 0
conv a i
add i
ldc i 0
add i
conv i a
movs 1
lod a 0 7
conv a i
lda 0 0
conv a i
add i
ldc i 1
add i
conv i a
movs 1
add i
str i 0 0
retf
end_arraySum:
begin_testErrors:
ssp 7
ldc r 0.0
str r 0 5
ldc i 1
str i 0 6
retf
end_testErrors:
begin_main:
ssp 13
mst 0
cup 0 begin_generalTest
mst 0
ldc r 5.3
ldc r 7.8
cup 2 begin_floatSum
conv r i
str i 0 5
lod i 0 5
out i
ldc c ' '
out c
ldc c 10
out c
mst 0
cup 0 begin_testFibonacci
ldc i 0
str i 0 6
ldc c 'C'
out c
ldc c 'a'
out c
ldc c 'l'
out c
ldc c 'c'
out c
ldc c 'u'
out c
ldc c 'l'
out c
ldc c 'a'
out c
ldc c 't'
out c
ldc c 'e'
out c
ldc c ' '
out c
ldc c 'f'
out c
ldc c 'a'
out c
ldc c 'c'
out c
ldc c 'u'
out c
ldc c 'l'
out c
ldc c 't'
out c
ldc c 'y'
out c
ldc c ' '
out c
ldc c 'o'
out c
ldc c 'f'
out c
ldc c ':'
out c
ldc c 10
out c
in i
str i 0 6
mst 0
lod i 0 6
cup 1 begin_faculty
str i 0 7
ldc c 'R'
out c
ldc c 'e'
out c
ldc c 's'
out c
ldc c 'u'
out c
ldc c 'l'
out c
ldc c 't'
out c
ldc c ' '
out c
ldc c 'o'
out c
ldc c 'f'
out c
ldc c ' '
out c
lod i 0 6
out i
ldc c '!'
out c
ldc c ' '
out c
ldc c ':'
out c
ldc c ' '
out c
lod i 0 7
out i
ldc c ' '
out c
ldc c 10
out c
ldc i 13
conv i a
str a 0 8
ldc i 20
str i 0 9
ldc i 0
sro i 0
begin_arrayInit_722:
ldo i 0
lod i 0 9
les i
fjp end_arrayInit_722
ldc c '0'
ldo i 0
inc i 1
sro i 0
ujp begin_arrayInit_722
end_arrayInit_722:
ldc c 'E'
out c
ldc c 'n'
out c
ldc c 't'
out c
ldc c 'e'
out c
ldc c 'r'
out c
ldc c ' '
out c
ldc c 's'
out c
ldc c 'o'
out c
ldc c 'm'
out c
ldc c 'e'
out c
ldc c ' '
out c
ldc c '('
out c
ldc c 'm'
out c
ldc c 'a'
out c
ldc c 'x'
out c
ldc c '.'
out c
ldc c ' '
out c
ldc c '2'
out c
ldc c '0'
out c
ldc c ')'
out c
ldc c ' '
out c
ldc c 'c'
out c
ldc c 'h'
out c
ldc c 'a'
out c
ldc c 'r'
out c
ldc c 'a'
out c
ldc c 'c'
out c
ldc c 't'
out c
ldc c 'e'
out c
ldc c 'r'
out c
ldc c 's'
out c
ldc c ','
out c
ldc c ' '
out c
ldc c 'w'
out c
ldc c 'i'
out c
ldc c 't'
out c
ldc c 'h'
out c
ldc c ' '
out c
ldc c 't'
out c
ldc c 'h'
out c
ldc c 'e'
out c
ldc c ' '
out c
ldc c 'e'
out c
ldc c 's'
out c
ldc c 'c'
out c
ldc c 'a'
out c
ldc c 'p'
out c
ldc c 'e'
out c
ldc c ' '
out c
ldc c 'c'
out c
ldc c 'h'
out c
ldc c 'a'
out c
ldc c 'r'
out c
ldc c 'a'
out c
ldc c 'c'
out c
ldc c 't'
out c
ldc c 'e'
out c
ldc c 'r'
out c
ldc c ' '
out c
ldc c 'a'
out c
ldc c 's'
out c
ldc c ' '
out c
ldc c 'f'
out c
ldc c 'i'
out c
ldc c 'n'
out c
ldc c 'a'
out c
ldc c 'l'
out c
ldc c ' '
out c
ldc c 'c'
out c
ldc c 'h'
out c
ldc c 'a'
out c
ldc c 'r'
out c
ldc c 'a'
out c
ldc c 'c'
out c
ldc c 't'
out c
ldc c 'e'
out c
ldc c 'r'
out c
ldc c '.'
out c
ldc c '.'
out c
ldc c ' '
out c
ldc c 10
out c
lod a 0 8
conv a i
lda 0 0
conv a i
add i
sro i 0
ldc i 0
sro i 1
begin_scanString_726:
in c
sro c 2
ldo c 2
ldc c 27
neq c
fjp end_scanString_726
ldo i 0
ldo i 1
add i
conv i a
ldo c 2
sto c
ldo i 1
inc i 1
sro i 1
ujp begin_scanString_726
end_scanString_726:
ldc c 'Y'
out c
ldc c 'o'
out c
ldc c 'u'
out c
ldc c ' '
out c
ldc c 'e'
out c
ldc c 'n'
out c
ldc c 't'
out c
ldc c 'e'
out c
ldc c 'r'
out c
ldc c 'e'
out c
ldc c 'd'
out c
ldc c ':'
out c
ldc c ' '
out c
lod a 0 8
conv a i
lda 0 0
conv a i
add i
sro i 0
ldc i 0
sro i 1
begin_arrayInit_729:
ldo i 1
lod i 0 9
les i
fjp end_arrayInit_729
ldo i 0
ldo i 1
add i
conv i a
movs 1
sro c 2
ldo c 2
ldc c '0'
neq c
fjp end_arrayInit_729
ldo c 2
out c
ldo i 1
inc i 1
sro i 1
ujp begin_arrayInit_729
end_arrayInit_729:
ldc c ' '
out c
ldc c 10
out c
ldc c 'A'
out c
ldc c 'r'
out c
ldc c 'r'
out c
ldc c 'a'
out c
ldc c 'y'
out c
ldc c ' '
out c
ldc c 'i'
out c
ldc c 'n'
out c
ldc c 'i'
out c
ldc c 't'
out c
ldc c 'i'
out c
ldc c 'a'
out c
ldc c 'l'
out c
ldc c 'i'
out c
ldc c 'z'
out c
ldc c 'a'
out c
ldc c 't'
out c
ldc c 'i'
out c
ldc c 'o'
out c
ldc c 'n'
out c
ldc c ' '
out c
ldc c 'r'
out c
ldc c 'e'
out c
ldc c 's'
out c
ldc c 'u'
out c
ldc c 'l'
out c
ldc c 't'
out c
ldc c ':'
out c
ldc c ' '
out c
mst 0
ldc i 2
ldc i 3
cup 2 begin_arraySum
out i
ldc c ' '
out c
ldc c 10
out c
ldc i 1
str i 0 10
ldc i 8
str i 0 11
ldc c 'R'
out c
ldc c 'e'
out c
ldc c 's'
out c
ldc c 'u'
out c
ldc c 'l'
out c
ldc c 't'
out c
ldc c ' '
out c
ldc c 'o'
out c
ldc c 'f'
out c
ldc c ' '
out c
ldc c 'm'
out c
ldc c 'y'
out c
ldc c 'I'
out c
ldc c 'n'
out c
ldc c 't'
out c
ldc c ' '
out c
ldc c 's'
out c
ldc c 'u'
out c
ldc c 'm'
out c
ldc c ':'
out c
ldc c ' '
out c
lod i 0 10
lod i 0 11
add i
out i
ldc c ' '
out c
ldc c 10
out c
ldc i 4
str i 0 12
ldc i 0
str i 0 0
retf
end_main:
startOfProgram:
mst 0
cup 0 begin_main
hlt
